package be.luys.almacen;

import javax.swing.SwingUtilities;
import be.luys.almacen.gui.StartPanel;
import be.luys.almacen.gui.logic.ApplicationManager;

/**
* The main class.
*/
public final class Main
{
    /**
    * The entry point.
    */
    public static void main(final String[] args)
    {
        new Main();
    }

    /**
    * The constructor.
    */
    private Main()
    {
        ApplicationManager.getManager().loading(this, "Starting the application", 0.0);
        SwingUtilities.invokeLater(new Runnable()
        {
            @Override
            public void run()
            {
                ApplicationManager.getManager().loading(this, "Creating GUI", 0.5);
                StartPanel.getPanel().setVisible(true);
                ApplicationManager.getManager().loading(this, "Application started", 1.0);
            }
        });
    }

}